import Vue from 'vue'
import Router from 'vue-router'
//import Login from '.././views/login.vue'
//import NotFound from '.././views/404.vue'
//import Home from '.././views/index.vue'
Vue.use(Router)

export default new Router({
    mode: 'history', //去掉#号
    routes: [{
            path: '/',
            name: 'Home',
            component: resolve => require(['../src/components/mainbox.vue'], resolve),
            meta: { title: '自述文件' },
        },
        {
            path: '/drafts',
            name: 'drafts',
            component: resolve => require(['../src/components/drafts/index.vue'], resolve),
            meta: { title: '自述文件' },
        },
        {
            path: '/first',
            name: 'first',
            component: resolve => require(['../src/components/first/first.vue'], resolve),
            meta: { title: '自述文件' },
        },
        {
            path: '/login',
            name: 'Login',
            component: resolve => require(['../src/components/login/login.vue'], resolve),
            meta: { title: '自述文件' },

            // children:[
            //   {
            //     path: '/default',
            //     component: resolve => require(['../components/default.vue'],resolve),
            //     meta: {title: '系统首页'}
            //   },
            //   {
            //     path: '/set',
            //     component: resolve => require(['../components/set.vue'],resolve),
            //     meta: {title: '设置'}
            //   },
            //   {
            //     path: '/user',
            //     component: resolve => require(['../components/user.vue'],resolve),
            //     meta: {title: '账户管理'}
            //   },
            //   {
            //     path: '/member',
            //     component: resolve => require(['../components/memberList/memberList.vue'],resolve),
            //     meta: {title: '会员列表'}
            //   },
            //   {
            //     path: '/baseCharts',
            //       component: resolve => require(['../components/charts/baseCharts.vue'],resolve),
            //     meta: {title: '会员分析'}
            //   }
            // ]
        }
    ]
})